<ul class="nav nav-sidebar">

<li><%= link_to root_path do %>
<!-- <span class="glyphicon glyphicon-home"></span> --><b>我的文档</b>
<%end%>
</li>
<li><%= link_to root_path do %>
    <span class="glyphicon glyphicon-chevron-right" title="项目管理员"></span>自有文档
<%end%>
</li>
<li><%= link_to share_mydocs_path do %>
    <span class="glyphicon glyphicon-chevron-right" title="项目管理员"></span>共享文档
<%end%>
</li>
<li><%= link_to apply_mydocs_path do %>
    <span class="glyphicon glyphicon-chevron-right" title="项目管理员"></span>借阅文档

<%end%>
<li>
<%= link_to folders_path(),:class=>"",:title=>"查看项目所有目录" do  %>
<b>项目文档</b> <%= sanitize('<span class="badge">管理员</span>') if current_member.is_project_admin %>
<%end%>
</li>


<% current_member.project_groups.each do  |group| %>
<li title="查看小组所有目录"><%= link_to group_folders_group_path(:id=>group.id) do %>
   <span class="glyphicon glyphicon-chevron-right" title="项目管理员"></span>
  <%= group.name%>
  <% if current_member.group_id == group.id%>
    <%= current_member.is_group_admin ?  sanitize('<span class="badge">管理员</span>') : sanitize('<span class="badge">成员</span>')   %>
  <%end%>
  <%end%>
</li>
<%end%>

</ul>

<ul class="nav nav-sidebar">
  <li><%= link_to "操作记录",notes_path%></li>
  <li><%= link_to "帮助",help_path%></li>
  <li><a href="">回收站</a></li>
</ul>